App({
	globalData: {
		nickName:'name',
		avatarUrl:'/icon/225默认头像.png',
		hasLogin:false
	},

	onLoad: function () {  
		const app = getApp();
		this.setData({
			userInfo: app.globalData.userInfo
		});
	},
	onLaunch() {
		const updateManager = wx.getUpdateManager()
		updateManager.onUpdateReady(function () {
			wx.showModal({
				title: '更新提示',
				content: '新版本已经准备好，是否重启小程序？',
				success: (res) => {
					if (res.confirm) {
						updateManager.applyUpdate()
					}
				}
			})
		})
	},
	onShow(){
		const sccountInfo = wx.getAccountInfoSync()
	}
});